<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			function createCar(oname,odata,oprice,oCertificate){
				var newCar=new Object();
				    newCar.data=odata;
				    newCar.name=oname;
				    newCar.Certificate=oCertificate;
				    newCar.Instructions=function(){
				    	console.log("此型号车名为"+oname+"价格适中,外观大气,性能优越的城市级SUV,出厂日期为"+odata+"建议销售价格为"+oprice+"合格证为"+oCertificate);
				    };
				    newCar.price=oprice;
				    return newCar;
			}
			var car1=new createCar("哈弗H6","2017-7-25","16万","HGZ-ISO9001163");
			    car1.Instructions();
		</script>
	</body>
</html>
